<div id="cart" class="bg2">
	<?php if ($module->showtitle) { ?>
	<h3><?php echo $module->title; ?></h3>
	<?php }; ?>
	<div class="pd10">
<table class = "module_cart_detail" width = "100%">
<?php 
  $countprod = 0;
  $array_products = array();
  foreach($cart->products as $value){
    $array_products [$countprod] = $value;
?> 

      <tr class="<?php  if ( ($countprod + 2) % 2 > 0) { print 'odd'; } else { print 'even'; }  ?>">
        <td class="name pb10"><?php print $array_products [$countprod]["product_name"]; ?></td>
        <td class="qtty pb10" valign="middle"><?php print $array_products [$countprod]["quantity"]; ?></td>
        
		</tr>
    <?php $countprod++; ?>
<?php } ?>
</table>

      <!-- <span id = "jshop_quantity_products"><?php print $cart->count_product?></span>&nbsp;<?php print JText::_('PRODUCTS')?> -->
      <span id = "jshop_quantity_products"><strong><?php //print JText::_('SUM_TOTAL')?>Tổng tiền:</strong>&nbsp;</span>&nbsp;

      <span id = "jshop_summ_product"><?php print formatprice($cart->getSum(0,1))?></span>

      <a href = "<?php print SEFLink('index.php?option=com_jshopping&controller=cart&task=view', 1)?>"><?php //print JText::_('GO_TO_CART')?> Xem giỏ hàng</a>
 </div>
</div>

